package ArrayList;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * Author:  LiuTao
 * Version: 1.0
 * Date:    2023-12-08  16:58
 */
public class Test {
    public static void main(String[] rargs) {
        MyArrayList myArrayList = new MyArrayList();
        myArrayList.add(1);
        myArrayList.add(2);
        myArrayList.add(3);
        myArrayList.add(4);
        myArrayList.add(5);
        myArrayList.add(6);
        myArrayList.display();
        myArrayList.set(0,5);
        myArrayList.display();
        myArrayList.remove(5);
        myArrayList.display();
        myArrayList.add(2,6);
        myArrayList.display();
    }
}
